<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/layout/case/case-left-right-template.xhtml"
	xmlns:sinox="http://www.sinosoft.com.cn/sinox">

	<ui:param name="pvb" value="#{commonContentViewBean.parent}"/>
	<ui:param name="compId" value="#{commonContentViewBean.id}" />

	<ui:define name="compLeft">
			<ui:decorate template="/layout/page/form/page-fieldset-btn-up-template.xhtml">
			<ui:param name="compTitle" value="接警情况" />
			<ui:param name="compToggleable" value="true" />
				
			<ui:define name="compButtons">
				<p:commandButton
					actionListener="#{emergencymanageManage.editJcdj}" title="保存"
					onstart="return SinoPortal.Validation.validateForm('#{compId}_form')"
					update="#{pvb.id}_0_form"
					image="./img/icons/add.png" value="保存" style="margin:5px;"
					>
					<h:inputHidden value="#{commonContentViewBean.id}" />
				</p:commandButton>
				
				<p:commandButton
					actionListener="#{emergencymanageManage.updateJCStatus}" title="提交"
					onstart="return SinoPortal.Validation.validateForm('#{compId}_form')"
					update="#{pvb.id}_0_form"
					image="./img/icons/add.png" value="提交" style="margin:5px;"
					>
					<h:inputHidden value="#{commonContentViewBean.id}" />
				</p:commandButton>
				
				<p:commandButton title="重置" image="ui-icon-disk" value="重置"></p:commandButton>
			</ui:define>
			
			<ui:define name="compHiddens">
				<!-- 
				<h:inputHidden id="casestate" value="" />
				<h:inputHidden id="disposepsn" value="" />
				<h:inputHidden id="CASECLASS" value="" />
				<h:inputHidden id="caseaddress" value="" />
				
				<h:inputHidden id="#{compId}_SJBH" value="" />
				<h:inputHidden id="#{compId}_SJBHS" value="" />
				<h:inputHidden id="#{compId}_caseid" value="" />
				<h:inputHidden id="#{compId}_ZLSLRJH" value="" />
				 -->
			</ui:define>
			
			<ui:define name="compContent">
				<ui:decorate template="/layout/input/editable-template.xhtml">
					
					<!-- 第一行 -->
					<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
						<ui:param name="compType" value="normal" />
						<ui:param name="compBean1Id" value="reporttime" />
						<ui:param name="compBean2Id" value="reportmode" />
						<ui:param name="compBean1Lable" value="接警时间" />
						<ui:param name="compBean2Lable" value="报警形式" />
						<ui:param name="compBean1Required" value="true" />
						
						<ui:define name="compBean1Content">
							<p:calendar id="reporttime" size="33" mode="popup" showOn="button" 
								value="#{commonContentViewBean.reporttime}"
								pattern="yyyy年MM月d日 HH:mm:ss" locale="zh" popupIconOnly="true" />
						</ui:define>
						
						<ui:define name="compBean2Content">
							<sinox:codeSetInputTree id="reportmode" codeSetId="id_c_jjxs" value="#{commonContentViewBean.reportmode}" formId="#{commonContentViewBean.id}_form"/>
					    </ui:define>
					</ui:decorate>
					
					<!-- 第二行 -->
					<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
						<ui:param name="compType" value="normal" />
						<ui:param name="compBean1Id" value="receivedep" />
						<ui:param name="compBean1Lable" value="接报单位" />
						
						<ui:define name="compBean1Content">
							<h:inputText id="receivedep" readonly="true" value="#{commonContentViewBean.receivedep}" />
						</ui:define>
					</ui:decorate>
					
					<!-- 第三行 -->
					<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
						<ui:param name="compType" value="normal" />
						<ui:param name="compBean1Id" value="receivepsn" />
						<ui:param name="compBean1Lable" value="接 警 人" />
						
						<ui:define name="compBean1Content">
							<h:inputText id="receivepsn" readonly="true" value="#{commonContentViewBean.receivepsn}" />
						</ui:define>
					</ui:decorate>
					
					<!-- 第四行 -->
					<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
						<ui:param name="compType" value="normal" />
						<ui:param name="compBean1Id" value="casename" />
						<ui:param name="compBean1Lable" value="案事件名称" />
						
						<ui:define name="compBean1Content">
							<h:inputText id="casename" value="#{commonContentViewBean.casename}" />
						</ui:define>
					</ui:decorate>
					
					<!-- 第五行 -->
					<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
						<ui:param name="compType" value="single-all" />
						<ui:param name="compBean1Id" value="bjnr" />
						<ui:param name="compBean1Lable" value="报案人陈述简要情况" />
						
						<ui:define name="compBean1Content">
							<h:inputTextarea style="width:100%;height:100px;overflow:auto;"
							id="bjnr" effectDuration="400"
							value="#{commonContentViewBean.bjnr}" />
						</ui:define>
					</ui:decorate>
						
				</ui:decorate>
				
			</ui:define>
					
		</ui:decorate>
	</ui:define>
	
	<ui:define name="compRight">
		<h:form>
			<p:commandButton id="btncase" value="添加案件详情" type="button"
				style="width:100%;" />
				<p:menu widgetVar="themeMenu" type="tiered" position="dynamic"
					trigger="btncase" my="left top" at="left bottom" >
					<p:menuitem value="报案人/受害人"
						onstart="btnAction('#{commonContentViewBean.id}','报警人信息','750','640','icons/cog_add.png','add','duty-case-scene','case_barshrdj');"		
					 icon="ui-icon ui-icon-refresh" />
					<p:submenu label="损失物品" icon="ui-icon ui-icon-newwin">
						<p:menuitem value="通讯工具"
							onstart="btnAction('#{commonContentViewBean.id}','损失物品信息','620','500','icons/cog_add.png','add','duty-case-scene','lose_s_mobile');"
							icon="ui-icon ui-icon-disk" />
						<p:menuitem value="交通工具"
							onstart="btnAction('#{commonContentViewBean.id}','交通工具','620','500','icons/cog_add.png','add','duty-case-scene','lose_s_vehicle');"
							icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="证件" update="messages"
							onstart="btnAction('#{commonContentViewBean.id}','证件','620','500','icons/cog_add.png','add','duty-case-scene','lose_s_certificate');"
							icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="家用电器"
							onstart="btnAction('#{commonContentViewBean.id}','家用电器','620','500','icons/cog_add.png','add','duty-case-scene','lose_s_eappliance');"
							icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="首饰文物" update="messages"
							onstart="btnAction('#{commonContentViewBean.id}','首饰文物','620','500','icons/cog_add.png','add','duty-case-scene','lose_s_jewelryaculrelic');"
							icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="货币有价证券"
							onstart="btnAction('#{commonContentViewBean.id}','货币有价证券','620','500','icons/cog_add.png','add','duty-case-scene','lose_s_securities');"
							icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="枪支弹药"
							onstart="btnAction('#{commonContentViewBean.id}','枪支弹药','620','500','icons/cog_add.png','add','duty-case-scene','lose_s_firearm');"
							icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="一般物品"
							onstart="btnAction('#{commonContentViewBean.id}','一般物品','620','500','icons/cog_add.png','add','duty-case-scene','lose_s_res');"
							icon="ui-icon ui-icon-arrowrefresh-1-w" />
					</p:submenu>
					<p:menuitem value="失踪人员"
						onstart="btnAction('#{commonContentViewBean.id}','失踪人员','850','560','icons/cog_add.png','add','xzxt-szry-scene','add-szry');"
						 icon="ui-icon ui-icon-refresh" />
					<p:menuitem value="被盗抢机动车"
						onstart="btnAction('#{commonContentViewBean.id}','被盗抢机动车','850','560','icons/cog_add.png','add','xzxt-bdqcl-scene','bdqcl_view');"
						 icon="ui-icon ui-icon-refresh" />
					<p:menuitem value="作案手段"
						onstart="btnAction('#{commonContentViewBean.id}','作案手段','620','500','icons/cog_add.png','add','duty-case-scene','case_i_resort');"
						 icon="ui-icon ui-icon-refresh" />
					<p:menuitem value="作案特点"
						onstart="btnAction('#{commonContentViewBean.id}','作案特点','620','500','icons/cog_add.png','add','duty-case-scene','case_i_peculiarity');"
						 icon="ui-icon ui-icon-refresh" />
					<p:menuitem value="作案工具"
						onstart="btnAction('#{commonContentViewBean.id}','作案工具','620','500','icons/cog_add.png','add','duty-case-scene','case_i_instrument');"
						 icon="ui-icon ui-icon-refresh" />	 
					<p:menuitem value="嫌疑对象"
						onstart="btnAction('#{commonContentViewBean.id}','嫌疑对象','620','500','icons/cog_add.png','add','duty-case-scene','case_i_suspicion');"
						 icon="ui-icon ui-icon-refresh" />	 
					<p:menuitem value="涉案嫌疑人" icon="ui-icon ui-icon-refresh" 
						onstart="btnAction('#{commonContentViewBean.id}','涉案嫌疑人信息','800','500','icons/cog_add.png','add','duty-case-scene','case_i_xyr');"
					/>
					<p:menuitem value="涉案团伙" icon="ui-icon ui-icon-refresh" 
						onstart="btnAction('#{commonContentViewBean.id}','涉案团伙','620','500','icons/cog_add.png','add','duty-case-scene','case_ford_criminal');"
					/>
					<p:menuitem value="涉案单位" icon="ui-icon ui-icon-refresh" 
						onstart="btnAction('#{commonContentViewBean.id}','涉案单位','620','500','icons/cog_add.png','add','duty-case-scene','case_ford_unit_data');"
					/>
					<p:submenu label="缴获物品" icon="ui-icon ui-icon-extlink">
						<p:menuitem value="通讯工具" icon="ui-icon ui-icon-disk" />
						<p:menuitem value="交通工具" icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="证件" icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="家用电器" icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="首饰文物" icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="货币有价证券" icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="枪支弹药" icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="一般物品" icon="ui-icon ui-icon-arrowrefresh-1-w" />
					</p:submenu>
				</p:menu>

			</h:form> 
			<fieldset style="width: 100%; text-align: center;"><legend>相关信息</legend>
				<div style="overflow:auto;height:390px;">
				<div eventstatus="false" class="sample-container"
					style="display: block;"><a href="#">案件基础信息</a> <a href="#">涉案嫌疑人</a></div>
				</div>
			</fieldset>
	</ui:define>
</ui:composition>